/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package paw.eltabique.service.interfaces;

import java.util.Collection;
import java.util.List;
import paw.eltabique.service.exceptions.UserAlReadyExistException;
import paw.eltabique.service.exceptions.UserNotFoundException;
import paw.eltabique.domain.Usuario;
import paw.eltabique.domain.Usuario.Role;

/**
 *
 * @author drakart
 */
public interface UsuarioService {
  public void addUsuario(Usuario usr) throws UserAlReadyExistException;
  public void updateUsuario(Usuario usr) throws UserNotFoundException;
  public void removeUsuario(String usrName) throws  UserNotFoundException;
  public Usuario getByName(String usrName) throws UserNotFoundException;
  public Collection<Usuario> getAll();
  public Boolean checkAuth(String usrName, String role) throws UserNotFoundException;
}
